<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" href="__STATIC__/css/mui.min.css"/>
    <link rel="stylesheet" href="__STATIC__/css/common.css">
    <link rel="stylesheet" href="__STATIC__/css/module.css">
    <script src="__STATIC__/js/jquery.min.js"></script>
    <script src="__STATIC__/js/mui.min.js"></script>

</head>

<body>
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-arrowleft mui-pull-left"></a>
    <h1 class="mui-title">意见反馈</h1>
</header>
<div class="mui-content">
    <img src="__STATIC__/images/fankuiban.jpg" class="width-full" alt="">
    <div class="pingjia-con">
        <textarea id="bk_remark" placeholder="写下您的问题，我们将竭诚为您服务~"></textarea>
        <p class="mui-text-right pad10">0/200</p>
        
    </div>
    <div class="flex flex-middle fk-input">
        姓名：
        <input class="flex-1" type="text" name="bk_name">
    </div>
    <div class="flex flex-middle fk-input">
        电话：
        <input class="flex-1" type="text" name="bk_mobile">
    </div>
    <button class="mui-btn btn-tjpj diyStart" onclick="shangchuan();">提交</button>
</div>
<script>
  function shangchuan(){
	var bk_remark = $("#bk_remark").val();
	var bk_name = $("input[name='bk_name']").val();
	var bk_mobile = $("input[name='bk_mobile']").val();
	

	if (bk_remark=='') {
		alert("请填写问题");
		return false;
	}
	if (bk_name=='') {
		alert("请填写姓名");
		return false;
	}
	if (bk_mobile=='') {
		alert("请填写电话");
		return false;
	}
		 url = "{:url('index/User/fankui')}";
            $.post(url, {bk_remark:bk_remark,bk_name:bk_name,bk_mobile:bk_mobile}, function (data) {
                if (data >1) {
                	alert("提交成功");
                    //layer.msg("移除成功", {icon: 1, time: 1000});
                    location.href="{:url('index/User/shezhi')}";
                } else {
                    alert("提交失败");
                }
            })
	
	//location.href='{:url("index/User/index")}';
}  
</script>
</body>
</html>